package com.shawn.integeration.ratelimiter.service;

import com.shawn.integeration.ratelimiter.annonation.RateLimiter;
import org.aspectj.lang.JoinPoint;

/**
 * 限流接口定义
 *
 * @author: shawn
 * @Date: 2023/12/28 10:39
 * @Version 1.0.0
 */
public interface IRateLimiterService {

    /**
     * 是否可以访问
     */
    boolean canAccess(JoinPoint joinPoint, RateLimiter rateLimiter);
}
